    {!! Html::style(env("APP_URL").'/assets/backend/libs/datepicker/bootstrap-datetimepicker.min.css') !!}
    <div class="tabs-container">
        <div class="tab-content">
            <div id="tab-1" class="tab-pane active">
                <div class="panel-body">
                    <div class="row">
                        {!! Form::open( [ 'route' => ['admin.shop.refund.index'], 'method' => 'get', 'id' => 'ordersurch-form','class'=>'form-horizontal'] ) !!}
                        <input type="hidden" name="status" value="{{request('status')?request('status'):0}}">
                        <div class="col-md-2">
                            <select class="form-control" name="field">
                                <option value="refund_no">售后申请编号</option>
                                <option value="order_no">订单编号</option>
                            </select>
                        </div>
                        <div class="col-md-4">
                            <div class="input-group">
                                <input type="text" name="value" placeholder="Search"
                                       class=" form-control"> <span
                                        class="input-group-btn">
                                                <button type="submit" class="btn btn-primary">查找</button></span></div>
                        </div>
                        {!! Form::close() !!}
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="box-body table-responsive">
                        <table class="table table-hover table-bordered">
                            <tbody>
                            <!--tr-th start-->
                            <tr>
                                <th>申请编号</th>
                                <th>订单号</th>
                                <th>申请类型</th>
                                <th>申请时间</th>
                                <th>申请会员</th>
                                <th>退款金额</th>
                                <th>操作</th>
                            </tr>
                            <!--tr-th end-->

                            @foreach ($refunds as $item)
                                <tr>
                                    <td>{{$item->refund_no}}</td>
                                    <td>{{$item->order->order_no}}</td>
                                    <td>{{$item->type==1?'退货':'换货'}}</td>
                                    <td>{{$item->created_at}}</td>
                                    <td>{{$item->user->mobile}}</td>
                                    <td>{{$item->amount/100}} 元</td>
                                    <td>

                                        <a class="btn btn-xs btn-primary"
                                           href="{{route('admin.shop.refund.show', ['id' => $item->id])}}?shop_id={{ request('shop_id') }}">
                                            <i data-original-title="查看" data-toggle="tooltip" data-placement="top"
                                               class="fa fa-pencil-square-o" title=""></i></a>
                                    </td>
                                </tr>
                            @endforeach

                            </tbody>
                            <tfoot>
                            <tr>
                                <td colspan="7" class="footable-visible">
                                    {!! $refunds->render() !!}
                                </td>
                            </tr>
                            </tfoot>
                        </table>
                    </div><!-- /.box-body -->
                </div>
            </div>

        </div>
    </div>

    <div id="modal" class="modal inmodal fade"></div>
    {!! Html::script(env("APP_URL").'/assets/backend/libs/datepicker/bootstrap-datetimepicker.js') !!}
    {!! Html::script(env("APP_URL").'/assets/backend/libs/datepicker/bootstrap-datetimepicker.zh-CN.js') !!}
    @include('shop-backend::refund.include.export_script')